package backend;

public class DateTime
{
	
	private long unixTimestamp;
	private int dateId;
	private int timeId;
	private String dateType;
	private String timeType;
	
	public DateTime(long ts, int dId, int tId, String dT, String tT)
	{
		unixTimestamp = ts;
		
		dateId = dId;
		timeId = tId;
		dateType = dT;
		timeType = tT;
	}
	
	// Gets duration in seconds from this to other
	public long getDurationUntil(DateTime other)
	{
		return other.getTime() - unixTimestamp;
	}

	public long getTime() {
		return unixTimestamp;
	}

	public int getDateId() {
		return dateId;
	}

	public int getTimeId() {
		return timeId;
	}

	public String getDateType() {
		return dateType;
	}

	public String getTimeType() {
		return timeType;
	}
	
}
